<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%
	String ptpath = request.getContextPath();
	String ptbasePath = request.getScheme() + "://"
			+ request.getServerName() + ":" + request.getServerPort()
			+ ptpath + "/";
%>
<style type="text/css">
.topdiv {
	z-index: 1000; /*设置层叠优先级*/
	position: fixed;
	top: 0px;
	width: 94%;
}

strong {
	margin-right: 10px;
}
/*logo字体位置 */
.mine-set {
	color: #D81E06;
	display: inline-block;
	padding-left: 60px;
}
/*网站logo*/
.ipng {
	position: absolute;
	top: 3px;
	background: url(<%=ptbasePath%>assets/x-img/logo-top.png) no-repeat 0px
		0px;
	display: inline-block;
	margin-left: 20px !important;
	width: 32px;
	height: 32px;
}
</style>
<div class="navbar">
	<div class="navbar-inner topdiv">
		<div class="container-fluid">
			<a data-target=".navbar-responsive-collapse" data-toggle="collapse"
				class="btn btn-navbar"><span class="icon-bar"></span><span
				class="icon-bar"></span><span class="icon-bar"></span></a>
			<%--  <a href="<%=ibasePath%>indexshow" class="brand"><span class="icon-gift z5"></span>中北在线购物网站</a> --%>
			<a href="<%=ptbasePath%>indexshow" class="brand "><span
				class="ipng z5"></span><span class="mine-set">汽车用品之家</span></a>
			<div class="nav-collapse collapse navbar-responsive-collapse">
				<ul class="nav">
					<li class="divider-vertical"></li>
					<li class="dropdown">
						<!--open--> <a data-toggle="dropdown" class="dropdown-toggle"
						href="#"> <strong class="caret"></strong>商品分类
					</a>
						<ul class="dropdown-menu">
							<li class="nav-header">基本</li>
							<li class="dropdown-submenu"><a tabindex="-1" href="#">按分类查看</a>
								<ul class="dropdown-menu">
									<c:choose>
										<c:when
											test="${(empty simpleGroups) or (fn:length(simpleGroups)<1)}">
											<li><a href="#">信息为空0.0</a></li>
										</c:when>
										<c:otherwise>
											<c:forEach items="${simpleGroups}" var="one">
												<li><a href="<%=ptbasePath%>search?groupId=${one.id}">${one.name}</a></li>
											</c:forEach>
										</c:otherwise>
									</c:choose>
								</ul></li>
							<li class="dropdown-submenu"><a tabindex="-1" href="#">按车型查看</a>
								<ul class="dropdown-menu">
									<c:choose>
										<c:when
											test="${(empty carGroups) or (fn:length(carGroups)<1)}">
											<li><a href="#">信息为空0.0</a></li>
										</c:when>
										<c:otherwise>
											<c:forEach items="${carGroups}" var="two">
												<li><a href="<%=ptbasePath%>search?groupId=${two.id}">${two.name}</a></li>
											</c:forEach>
										</c:otherwise>
									</c:choose>
								</ul></li>
							<li class="divider"></li>
							<li class="nav-header">特殊</li>
							<li><a href="<%=ptbasePath%>search?listName=HOT"><span class="icon-fire"></span>&nbsp;&nbsp;热卖商品</a>
							</li>
							<li><a href="<%=ptbasePath%>search?listName=LIKE"><span class="icon-heart"></span>&nbsp;&nbsp;评分最高</a>
							</li>
							<li><a href="<%=ptbasePath%>search?listName=NEW"><span class="icon-time"></span>&nbsp;&nbsp;最新上架</a>
							</li>
							<li><a href="<%=ptbasePath%>search?listName=NOGROUPSHIP"><span class="icon-question-sign"></span>&nbsp;&nbsp;未知分类</a>
							</li>
							<li class="divider"></li>
							<li><a href="<%=ptbasePath%>search?listName=ALL">所有商品</a></li>
						</ul>
					</li>
				</ul>
				<!-- 商品分类结束 -->
				<c:choose>
					<c:when test="${ empty member}">
						<ul class="nav pull-right">
							<li><a href="<%=ptbasePath%>login">登录</a>
							<li class="divider-vertical"></li>
							<li><a href="<%=ptbasePath%>reg">注册</a></li>
							<li class="divider-vertical"></li>
							<li class="dropdown"><a data-toggle="dropdown"
								class="dropdown-toggle" href="#"><span class="icon-th-list"></span>&nbsp;&nbsp;操作<strong
									class="caret"></strong></a>
								<ul class="dropdown-menu">
									<li><a href="<%=ptbasePath%>cart/show"><span
											class="icon-shopping-cart  z5"></span>查看购物车</a></li>
								</ul></li>
						</ul>
					</c:when>
					<c:otherwise>
						<ul class="nav pull-right">
							<li><a>${member.id}</a>
							<li class="divider-vertical"></li>
							<li><a>${member.name}</a></li>
							<li class="divider-vertical"></li>
							<li class="dropdown"><a data-toggle="dropdown"
								class="dropdown-toggle" href="#"><span class="icon-th-list"></span>&nbsp;&nbsp;操作<strong
									class="caret"></strong></a>
								<ul class="dropdown-menu">
									<li><a href="<%=ptbasePath%>member/${member.id}"><span
											class="icon-user z5"></span>信息查看</a></li>
									<li><a href="<%=ptbasePath%>member/edit/${member.id}"><span
											class="icon-wrench z5"></span>信息修改</a></li>
									<li><a id="modal-330177" href="#modal-container-330177"
										role="button" data-toggle="modal"> <span
											class="icon-money z5"></span>账户充值
									</a></li>
									<li><a href="<%=ptbasePath%>cart/show"><span
											class="icon-shopping-cart  z5"></span>查看购物车</a></li>
									<li><a href="<%=ptbasePath%>order/show"><span
											class="icon-bookmark-empty  z5"></span>未处理订单</a></li>
									<li class="divider"></li>
									<li><a><span class="z5">余额</span><span class="z5">${member.balance}</span>(￥)</a>
									</li>
									<li class="divider"></li>
									<li><a href="<%=ptbasePath%>logout"><span
											class="icon-off z5"></span>注销</a></li>
								</ul></li>
						</ul>
					</c:otherwise>
				</c:choose>
			</div>

		</div>
	</div>

</div>
<div id="modal-container-330177" class="modal hide fade topZero"
	role="dialog" aria-labelledby="myModalLabel" aria-hidden="true">
	<div class="modal-header">
		<button type="button" class="close" data-dismiss="modal"
			aria-hidden="true">×</button>
		<h3 id="myModalLabel" class="text-info ">
			<span class="icon-user  cheSpan"></span>账户充值
		</h3>
	</div>
	<!--引入form-->
	<%@include file="addMoney.jsp"%>
</div>